package cn.adkii.springframework.context;

import cn.adkii.springframework.beans.BeansException;
import cn.adkii.springframework.beans.factory.Aware;

/**
 * @author malingdi
 * @description Interface to be implemented by any object that wishes to be notifiedof the {@link ApplicationContext} that it runs in.
 * 实现此接口可以感知到所属的ApplicationContext
 * @date 2023/11/24 18:18
 */
public interface ApplicationContextAware extends Aware {
    void setApplicationContext(ApplicationContext applicationContext) throws BeansException;
}
